//
//  UIApplication+XYAdd.h
//  PeiJue
//
//  Created by lxy on 2017/9/25.
//  Copyright © 2017年 lixiya. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
NS_ASSUME_NONNULL_BEGIN

@interface UIApplication (XYAdd)

+ (AppDelegate *)xy_appDelegate;

/** 获取当前屏幕正在显示的UIViewcontroller */
+ (UIViewController*)xy_topViewController;

/** 获取rootViewController 的 最上层 UIViewcontroller */
+ (UIViewController*)xy_topViewControllerWithRootViewController:(UIViewController*)rootViewController;

/** 获取当前屏幕的RootViewController */
+ (UIViewController *)xy_windowRootViewController;

@end
NS_ASSUME_NONNULL_END
